<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap js-check-wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">导航管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a href="{:url('nav/index')}">所有导航</a></li>
                                <li><a href="{:url('nav/add')}">添加导航</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form action="{:url('Rbac/listorders')}" method="post" class="layui-form">
                                        <php> $is_main=array("1"=>'是',"0"=>'否');</php>
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <th width="40">ID</th>
                                                    <th>名称</th>
                                                    <th width="80">主导航</th>
                                                    <th>描述</th>
                                                    <th width="160">{:lang('ACTIONS')}</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <foreach name="navs" item="vo">
                                                    <tr>
                                                        <td>{$vo.id}</td>
                                                        <td>{$vo.name}</td>
                                                        <td>{$is_main[$vo.is_main]}</td>
                                                        <td>{$vo.remark}</td>
                                                        <td><span class="layui-btn-group">
                                                            <a class="layui-btn layui-btn-xs layui-btn-normal" href="javascript:parent.openIframeLayer('{:url('NavMenu/index',array('nav_id'=>$vo['id']))}','{$vo.name}菜单管理',{});">菜单管理</a>
                                                            <a class="layui-btn layui-btn-xs" href="{:url('nav/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                                                            <a class="js-ajax-delete layui-btn layui-btn-xs layui-btn-danger" href="{:url('nav/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                                                        </span>
                                                            
                                                        </td>
                                                    </tr>
                                                </foreach>
                                            </tbody>
                                        </table>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>